import { useMemo } from "react";
import Taro, { useDidShow } from "@tarojs/taro";
import { View, Text } from "@tarojs/components";

import CustomTabBar from "../../custom-tab-bar";

export default function Index() {
  const page = useMemo(() => Taro.getCurrentInstance().page, []);

  useDidShow(() => {
    const tabbar = Taro.getTabBar < CustomTabBar > page;
    // tabbar?.setSelected(1);
  });

  return (
    <View className="index">
      <Text>我是分类页！</Text>
    </View>
  );
}
